<script setup>
</script>

<template>
  <el-container>
    <el-header>
      <div class="head-left" style="width: 180px">后台管理平台</div>
      <div class="head-right"></div>
    </el-header>
    <el-container class="container">
      <el-aside width="200px">
        <!-- 
          :collapse="isCollapse"
          @open="handleOpen"
          @close="handleClose" -->
        <el-menu
          default-active="/admin/users"
          class="el-menu-vertical-demo"
          :router="true"
        >
          <el-sub-menu index="/admin/users">
            <template #title>
              <!-- <el-icon><location /></el-icon> -->
              <span>个人中心</span>
            </template>
            <el-menu-item index="/admin/users/personal">个人资料</el-menu-item>
            <el-menu-item index="/admin/users/password">修改密码</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="/admin/articles">
            <template #title>
              <span>文章管理</span>
            </template>
            <el-menu-item index="/admin/article/add">发布文章</el-menu-item>
            <el-menu-item index="/admin/article">文章列表</el-menu-item>
          </el-sub-menu>
          <el-menu-item index="/admin/comments">
            <!-- <el-icon><setting /></el-icon> -->
            <span>评论管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/fans">
            <!-- <el-icon><setting /></el-icon> -->
            <span>粉丝管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/star">
            <!-- <el-icon><setting /></el-icon> -->
            <span>点赞管理</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style scoped>
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  /* background-color: tomato; */
  font-size: 24px;
  font-weight: bold;
  border-bottom: 1px solid #aaa;
  box-shadow: 0px 2px 5px #ccc;
}
.el-aside {
  /* background-color: lawngreen; */
  border-right: 1px solid #aaa;
}
.el-main {
  /* background-color: lightblue; */
}

.container {
  height: calc(100vh - 60px);
}
</style>
